package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 出库单产品信息表
 * </p>
 *
 * @author long
 * @since 2024-11-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_outbound_product")
public class OrderOutboundProductDo extends Model<OrderOutboundProductDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("outbound_id")
    private Long outboundId;

    @TableField("product_id")
    private Long productId;

    /**
     * 箱类号
     */
    @TableField("box_type_number")
    private String boxTypeNumber;

    @TableField("secondary_sorting_qty")
    private Integer secondarySortingQty;

    @TableField("recheck_qty")
    private Integer recheckQty;

    /**
     * 预报出库产品数
     */
    @TableField("forecast_qty")
    private Integer forecastQty;

    /**
     * 实际出库产品数
     */
    @TableField("outbound_qty")
    private Integer outboundQty;

    /**
     * 预报出库箱数
     */
    @TableField("forecast_box_qty")
    private Integer forecastBoxQty;

    /**
     * 实际出库箱数
     */
    @TableField("outbound_box_qty")
    private Integer outboundBoxQty;

    /**
     * 申报价格
     */
    @TableField("declare_price")
    private BigDecimal declarePrice;

    /**
     * 申报价格 货币代码
     */
    @TableField("currency_code")
    private String currencyCode;

    /**
     * 是否换标
     */
    @TableField("change_bid")
    private Boolean changeBid;

    /**
     * 新条码
     */
    @TableField("new_barcode")
    private String newBarcode;

    /**
     * 新条码标签文件
     */
    @TableField("new_barcode_label_file")
    private Long newBarcodeLabelFile;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
